home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
usr
/
lib
/
X11
/
x11perfcomp
/
fillblnk
next >
Wrap
Text File
|
2008-08-27
|
424b
|
16 lines
#!/bin/sh
echo '#####EOF#####' | cat $2 - $1 |
awk -F: '\
$1 == "#####EOF#####" { filling = 1; currentItem = 1; lastItem = NR; next; }
filling != "1" { itemOrder[" " $1] = NR; name[NR] = $1; }
filling == "1" { rate[itemOrder[$2]] = $1; }
END {
for (i = 1; i < lastItem; i++) {
if (rate[i] != "") {
printf ("%s: %s\n", rate[i], name[i]);
} else {
printf (" 0 trep @ 0.0 msec (0.0/sec): %s\n", name[i]);
}
}
}'